import {v4 as uuidv4} from 'uuid'
export const userTemp = () => {
    //从本地获取临时身份
    let userInfo = localStorage.getItem('USERINFO');
    //若没有临时身份
    if(!userInfo){
        //创建临时身份
        userInfo = uuidv4();
        //存入会话控制
        localStorage.setItem('USERINFO',userInfo)
    }
    return userInfo
}
//下一步:将其放入仓库中引入,